

import { defineStore } from 'pinia';

import store from "@/store"
export const counterStore = defineStore('counter', () => {
      const activeNum=ref(1)
      const bkItem=ref({})

      // 优秀班课排名参数，用来解决老师通过点击优秀班名进去不能编辑的问题
      const excellentClass=ref(null)
     
      return {activeNum,bkItem,excellentClass}

}, {
      persist: {
            storage: sessionStorage
      }

})


export default counterStore;

// 非setup
export function counterStoreHook() {
  return counterStore(store);
}